package com.yxw.yx_hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/** 
 * @author liuxin
 * @create 2024-01-18 15:53:10 
 * @description 文件表 
 */
@Data
@TableName(value ="yx_file")
@ApiModel(value = "文件表" , description="yx_file")
public class YxFileEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "file_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long fileId;

    @TableField(value="buss_id")
    @ApiModelProperty(value="业务ID")
    private Long bussId;

    @TableField(value="file_name")
    @ApiModelProperty(value="文件名称")
    private String fileName;

    @TableField(value="file_size")
    @ApiModelProperty(value="文件大小")
    private Long fileSize;

    @TableField(value="file_url")
    @ApiModelProperty(value="存储地址")
    private String fileUrl;

    @TableField(value="file_type")
    @ApiModelProperty(value="文件后缀名")
    private String fileType;

    @TableField(value="create_time")
    @ApiModelProperty(value="上传时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="create_id")
    @ApiModelProperty(value="上传人ID")
    private Long createId;

    @TableField(value="create_name")
    @ApiModelProperty(value="上传人名称")
    private String createName;

    @TableField(value="object_key")
    @ApiModelProperty(value="存储objectKey")
    private String objectKey;

    @TableField(value="remark")
    @ApiModelProperty(value="备注")
    private String remark;

    @TableField(value="tenant_id")
    @ApiModelProperty(value="租户ID")
    private Long tenantId;

}
